package com.ruoyi.project.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * 仓储货物对象 sys_stock
 * 
 * @author orange
 * @date 2022-04-07
 */
public class SysStock extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 仓库货物id */
    private Long stockId;

    /** 货物名称 */
    @Excel(name = "货物名称")
    private String stockName;

    /** 货物代码 */
    @Excel(name = "货物代码")
    private String stockCode;

    /** 货物数量 */
    @Excel(name = "货物数量")
    private Long num;

    /** 负责人id */
    @Excel(name = "负责人id")
    private Long personId;

    /** 最后的货架期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "最后的货架期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date shelfLife;

    /** 存储位置 */
    @Excel(name = "存储位置")
    private String address;

    public void setStockId(Long stockId) 
    {
        this.stockId = stockId;
    }

    public Long getStockId() 
    {
        return stockId;
    }
    public void setStockName(String stockName) 
    {
        this.stockName = stockName;
    }

    public String getStockName() 
    {
        return stockName;
    }
    public void setStockCode(String stockCode) 
    {
        this.stockCode = stockCode;
    }

    public String getStockCode() 
    {
        return stockCode;
    }
    public void setNum(Long num) 
    {
        this.num = num;
    }

    public Long getNum() 
    {
        return num;
    }
    public void setPersonId(Long personId) 
    {
        this.personId = personId;
    }

    public Long getPersonId() 
    {
        return personId;
    }
    public void setShelfLife(Date shelfLife) 
    {
        this.shelfLife = shelfLife;
    }

    public Date getShelfLife() 
    {
        return shelfLife;
    }
    public void setAddress(String address) 
    {
        this.address = address;
    }

    public String getAddress() 
    {
        return address;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("stockId", getStockId())
            .append("stockName", getStockName())
            .append("stockCode", getStockCode())
            .append("num", getNum())
            .append("personId", getPersonId())
            .append("shelfLife", getShelfLife())
            .append("address", getAddress())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
